export default {
  namespaced: true,
  state: {
    // 购物车中商品
    items: [],
    // 购物车商品数量
    number: 0
  },
  mutations: {
    set_cart_info (state, { items, number }) {
      // 修改购物车数据
      state.items = items
      state.number = number
    }
  }
}
